package edu.jit.flowers.service;

import java.util.List;

import edu.jit.flowers.bean.Feedbacks;
import edu.jit.flowers.dao.FeedbacksDAO;

public class FeedbacksService {
	private FeedbacksDAO fbDao = new FeedbacksDAO();
	//获取所有反馈信息
	public List<Feedbacks> getAllFeedbacks(){
		return fbDao.selectAll();
	}
	//删除反馈信息
	public int deleteFeedbacks(Feedbacks fb) {
		return fbDao.deleteFeedbacksById(fb);
	}
	//添加反馈信息
	public int addFeedbacks(Feedbacks fb) {
		return fbDao.addFeedbacks(fb);
	}
	//修改反馈信息
	public int updateFeedbacks(Feedbacks fb) {
		return fbDao.updateFeedbacksById(fb);
	}

}
